<?php
/**模拟丢失服务器
 *
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/26/026
 * Time: 13:40
 */
require ('./cfg.php');
require ('./interface.php');
require ('./ModerHasher.php');
require ('./ConsHasher.php');
$diser = new $dis();
$mem = new memcache();

foreach ($ss as $s=>$v){
    $diser->addNode($s);
}
$diser->delNode('C');

$key ='key_124';
$num = $diser->lookup($key);
$mem->connect($ss[$num]['host'],$ss[$num]['port']);
if (!$mem->get($key)){
    $mem->add($key,'val_124');
}
$val = $mem->get($key);



echo $val;